<?php
/**
 * Created by PhpStorm.
 * User: chy
 * Date: 2017/10/26
 * Time: 上午9:19
 */?>
<?php
/*
 * 分页部分
 * 只有在页数超过1的时候才会显示出来
 * Created on 2012-10-6
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
if($total_pages > 1)
{
    ?>
    <div id="page" class="x-panel-bbar x-panel-body" style="border:0 solid #99bbe8;text-align:center" align="center">
        <div  class="x-toolbar x-small-editor" style="text-align:center">
            <table cellspacing="0" style="text-align:center"><tbody><tr>
                    <td  id="pageFirst" title="首页" ><table style="width: auto;"  class="x-btn-wrap x-btn x-btn-icon " border="0" cellpadding="0" cellspacing="0" ><tbody><tr><td class="x-btn-left"><i>&nbsp;</i></td><td class="x-btn-center"><em ><a href="<?php echo $page_first ?>" style="text-decoration:none" ><button  class="x-btn-text x-tbar-page-first" type="button">首页&nbsp;</button></a></em></td><td class="x-btn-right"><i>&nbsp;</i></td></tr></tbody></table></td>

                    <td id="pagePrev" title="上一页" ><table style="width: auto;"  class="x-btn-wrap x-btn x-btn-icon " border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="x-btn-left"><i>&nbsp;</i></td><td class="x-btn-center"><em ><a href="<?php echo $page_prev ?>" style="text-decoration:none" ><button  class="x-btn-text x-tbar-page-prev" type="button">上一页&nbsp;</button></a></em></td><td class="x-btn-right"><i>&nbsp;</i></td></tr></tbody></table></td>

                    <td><span  class="ytb-sep"></span></td>

                    <td><span  class="ytb-text">Page</span></td>

                    <td><?php  echo $page;  ?></td>

                    <td id="totalPages"><span  class="ytb-text">of <span class="total_pages"><?php echo $total_pages  ?></span></span></td>

                    <td><span  class="ytb-sep"></span></td>

                    <td id="pageNext" title="下一页" ><table style="width: auto;"  class="x-btn-wrap x-btn x-btn-icon" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="x-btn-left"><i>&nbsp;</i></td><td class="x-btn-center"><em ><a href="<?php echo $page_next ?>" style="text-decoration:none" ><button  class="x-btn-text x-tbar-page-next" type="button">下一页&nbsp;</button></a></em></td><td class="x-btn-right"><i>&nbsp;</i></td></tr></tbody></table></td>

                    <td id="pageLast" title="最后一页" ><table style="width: auto;"  class="x-btn-wrap x-btn x-btn-icon " border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="x-btn-left"><i>&nbsp;</i></td><td class="x-btn-center"><em><a href="<?php echo $page_last ?>" style="text-decoration:none"><button  class="x-btn-text x-tbar-page-last" type="button">尾页&nbsp;</button></a></em></td><td class="x-btn-right"><i>&nbsp;</i></td></tr></tbody></table></td>

                    <td><span  class="ytb-sep"></span></td>

                    <td id="reLoad" title="刷新" ><table style="width: auto;"  class="x-btn-wrap x-btn x-btn-icon" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="x-btn-left"><i>&nbsp;</i></td><td class="x-btn-center"><em ><a href="<?php echo $cur_page ?>" style="text-decoration:none"><button  class="x-btn-text x-tbar-loading" type="button">刷新&nbsp;</button></a></em></td><td class="x-btn-right"><i>&nbsp;</i></td></tr></tbody></table></td>
                </tr></tbody></table>
            <div id="x-paging-info">当前记录 <?php echo $show_start; ?> - <?php echo $show_end; ?> of <span id="total_rows"><?php echo $total_rows; ?></span></div>
        </div>
    </div>
    <?php
}
?>


